<template>
  <div>
    <!-- 不需要路由切换，直接写到组件中 -->
    <li>
      <a href=""><img :src="'http://www.codeboy.com:9999/mfresh/'+data.pic" alt=""/></a>
      <div class="pdlist_text clearfloat">
        <h3>
          <p>{{data.model}}</p>
          <span>{{data.title}}</span>
        </h3>
        <a href="">查看详情</a>
      </div>
    </li>
  </div>
</template>

<script>
  export default {
    // 声明属性：接收传参
    props:['data'],
    mounted () {
      console.log('组件收到的data',this.data);;
    },
  }
</script>

<style lang="scss" scoped>

</style>